package com.ruoyi.radar.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.radar.common.CommonUtil;
import com.ruoyi.radar.domain.RadarSilo;
import com.ruoyi.radar.domain.RadarSiloConf;
import com.ruoyi.radar.service.RadarSiloConfService;
import com.ruoyi.radar.mapper.RadarSiloConfMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author BD
* @description 针对表【radar_silo_conf】的数据库操作Service实现
* @createDate 2024-12-05 16:01:52
*/
@Service
public class RadarSiloConfServiceImpl extends ServiceImpl<RadarSiloConfMapper, RadarSiloConf>
    implements RadarSiloConfService{

    @Autowired
    private RadarSiloConfMapper  radarSiloConfMapper;

    @Autowired
    CommonUtil commonUtil;

    @Override
    public List<RadarSiloConf> selectSiloConfList(Map<String, Object> param) {

        if(!"1".equals(param.get("type"))){
            commonUtil.toPage(param);
        }
        List<RadarSiloConf> radarSiloConfs = radarSiloConfMapper.selectSiloConfList(param);

        return radarSiloConfs;
    }

    @Override
    public Integer getCount(Map<String, Object> param) {

        Integer count = radarSiloConfMapper.getCount(param);

        return count;
    }
}




